//
//  MenuBarView.m
//  drag
//
//  Created by 梁羽 on 2025/6/28.
//

#import "MenuBarView.h"

@implementation MenuBarView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor colorWithWhite:0.9 alpha:0.9];
        self.layer.cornerRadius = 5;
        self.layer.borderWidth = 1;
        self.layer.borderColor = [UIColor grayColor].CGColor;
        
        // 边框颜色按钮
        _borderColorButton = [UIButton buttonWithType:UIButtonTypeSystem];
        _borderColorButton.frame = CGRectMake(10, 5, 120, 30);
        [_borderColorButton setTitle:@"边框颜色" forState:UIControlStateNormal];
        [self addSubview:_borderColorButton];
        
        // 边框粗细按钮
        _borderWidthButton = [UIButton buttonWithType:UIButtonTypeSystem];
        _borderWidthButton.frame = CGRectMake(140, 5, 120, 30);
        [_borderWidthButton setTitle:@"边框粗细" forState:UIControlStateNormal];
        [self addSubview:_borderWidthButton];
    }
    return self;
}

@end
